<div class="post-title"><h2><a href="<?php echo current_url();?>"><?php echo $title; ?></a></h2></div>

<div class="post-body">

<?php
	if($this->session->userdata('SUCCESSMSG'))
	{
		echo "<div class='success'>".$this->session->userdata('SUCCESSMSG')."</div>";
		$this->session->unset_userdata('SUCCESSMSG');
	}
?>
		
	<div class="buttons">
		<?php 			
			echo form_button(array('id' => 'button-view', 'content' => 'Kembali', 'onClick' => "location.href='".site_url()."transaksi_simp'" ));			
		?>		
	</div>

	<table cellpadding="0" cellspacing="0" border="0" class="display" id="display_table">
		<thead>
			<tr>
				<th>No Transaksi</th>
				<th>Tanggal</th>
				<th>No Rek</th>
				<th>Nama</th>
				<th>Jenis</th>
				<th>Sandi Simpanan</th>
				<th>Jumlah</th>
				<th>Cek</th>
			</tr>
		</thead>
		<tbody>
			<?php
				
				$sekarang = date("j").' '.nama_bulan(date("m")).' '.date("Y");
				if($transaksi_simp_data)
				{
					$i = 0;
					foreach ($transaksi_simp_data as $row)
					{
						$biaya = $row->biaya;
						if($biaya < 0){
							$biaya = $biaya * -1;
						}
						echo '<tr>';
						//echo '<td>'.substr($row->tgl_reg,8).'</td>';
						//echo '<td>'.substr($row->tgl_reg,5,2).'</td>';
						echo '<td>'.$row->no_transaksi.'</td>';
						echo '<td>'.substr($row->tgl_reg,8).'-'.(substr($row->tgl_reg,5,2)).'-'.substr($row->tgl_reg,0,4).'</td>';
						echo '<td>'.$row->no_rekening.'</td>';
						echo '<td>'.$row->nama_lengkap.'</td>';
						echo '<td>'.$row->id_jenis_simp.'</td>';
						echo '<td>'.$row->ket_sandi.'</td>';
						echo '<td>Rp '.number_format(($biaya), 0, '', '.').'</td>';
						echo '<td>'.form_hidden($i, $row->id).form_radio('selected_data', $i).'</td>';
						echo '</tr>';
						$i++;
					}
				}
			?>		
		</tbody>	
		<tfoot>
			<tr>
				<th>No Transaksi</th>
				<th>Tanggal</th>
				<th>No rekening</th>
				<th>Nama</th>
				<th>Jenis</th>
				<th>Sandi Simpanan</th>
				<th>Jumlah</th>
				<th>Cek</th>
			</tr>
		</tfoot>
	</table>

</div>
